package com.san.hkhospital.service.impl;

import com.san.hkhospital.entity.Employee;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.san.hkhospital.entity.Position;
import java.util.List;
import com.san.hkhospital.entity.PositionExample;
import com.san.hkhospital.mapper.PositionMapper;
import com.san.hkhospital.service.PositionService;
/**
 * ClassName:PositionServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class PositionServiceImpl implements PositionService{

    @Resource
    private PositionMapper positionMapper;

    @Override
    public long countByExample(PositionExample example) {
        return positionMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PositionExample example) {
        return positionMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer positionId) {
        return positionMapper.deleteByPrimaryKey(positionId);
    }

    @Override
    public int insert(Position record) {
        return positionMapper.insert(record);
    }

    @Override
    public int insertSelective(Position record) {
        return positionMapper.insertSelective(record);
    }

    @Override
    public List<Position> selectByExample(PositionExample example) {
        return positionMapper.selectByExample(example);
    }

    @Override
    public Position selectByPrimaryKey(Integer positionId) {
        return positionMapper.selectByPrimaryKey(positionId);
    }

    @Override
    public int updateByExampleSelective(Position record,PositionExample example) {
        return positionMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Position record,PositionExample example) {
        return positionMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Position record) {
        return positionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Position record) {
        return positionMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Position> selectPosition() {
        return positionMapper.selectByExample(null);
    }



}
